import Cookie from "js-cookie";

const TokenKey = "VUE3_TEST_TOKEN_KEY";

export function getToken() {
  return Cookie.get(TokenKey);
}

export function setToken(token) {
  Cookie.set(TokenKey, token, {
    expires: 1000 * 60 * 60 * 24 * 7,
  });
}

export function removeToken() {
  Cookie.remove(TokenKey);
}
